cmake_minimum_required(VERSION 3.10)

option(AM335X_PLATFORM "Enable build for RV1126B platform" OFF)

if (AM335X_PLATFORM)
include(${CMAKE_SOURCE_DIR}/cmake/AM335x/toolchain.cmake)
else()
include(${CMAKE_SOURCE_DIR}/cmake/x86/toolchain.cmake)
endif()

project(lvdemo-master)

set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/lv_install)
set (LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib")

# CMake 的全局变量 BUILD_SHARED_LIBS ,控制默认只编译静态库
option(BUILD_SHARED_LIBS "Build shared libraries" OFF)

add_subdirectory(thirdparty)
add_subdirectory(src)
add_subdirectory(examples)